package com.dyness.sdsp.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.dyness.sdsp.domain.SysMessage;
import com.dyness.sdsp.service.SysMessageService;
import com.dyness.sdsp.mapper.SysMessageMapper;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
* @author gaohaiqing
* @description 针对表【sys_message(国际化表)】的数据库操作Service实现
* @createDate 2024-01-05 14:26:14
*/
@Service
public class SysMessageServiceImpl extends ServiceImpl<SysMessageMapper, SysMessage>
    implements SysMessageService{

    @Transactional
    @Override
    public void truncateTable() {
        LambdaQueryWrapper<SysMessage> wrapper = new LambdaQueryWrapper<>();
        wrapper.eq(SysMessage::getModule, "city");
        remove(wrapper);
    }
}




